import request from "@/utils/request";

const modules = {
  //获取会话聊天信息
  getMessageList: (data) =>
    request({
      method: "post",
      data,
      url: "/talk/messagePage",
    }),

  //发送会话消息
  sendMessage: (data) =>
    request({
      method: "post",
      data,
      url: "/talk/sendMessage",
    }),
  //系统通知
  systemLog: (params) =>
    request({
      method: "get",
      params,
      url: "/notice/sendlog",
    }),
  //一键删除
  deleteSystemMessage: () =>
    request({
      method: "post",
      url: "/notice/delete",
    }),
  //一键已读
  readSystemMessage: () =>
    request({
      method: "post",
      url: "/notice/read",
    }),
  //已读一个消息
  readOneSystemMessage: (data) =>
    request({
      method: "post",
      data,
      url: "/notice/detail",
    }),
};

export default modules;
